class OSSConfig {
  String id;
  String libraryBucket;
  String libraryName;
  String libraryRoot;
  int libraryType;
  String remark1;
  String remark2;

  OSSConfig({
    required this.id,
    required this.libraryBucket,
    required this.libraryName,
    required this.libraryRoot,
    required this.libraryType,
    required this.remark1,
    required this.remark2,
  });

  factory OSSConfig.fromJson(Map<String, dynamic> json) {
    return OSSConfig(
        id: json['id'],
        libraryBucket: json['libraryBucket'],
        libraryName: json['libraryName'],
        libraryRoot: json['libraryRoot'],
        libraryType: json['libraryType'],
        remark1: json['remark1'],
        remark2: json['remark2']);
  }
}

class STSToken {
  String accessKeyId;
  String accessKeySecret;
  String expiration;
  String securityToken;

  STSToken({
    required this.accessKeyId,
    required this.accessKeySecret,
    required this.expiration,
    required this.securityToken,
  });

  factory STSToken.fromJson(Map<String, dynamic> json) {
    return STSToken(
        accessKeyId: json['accessKeyId'],
        accessKeySecret: json['accessKeySecret'],
        expiration: json['expiration'],
        securityToken: json['securityToken']);
  }
}
